@extends('Admin.layout.layout')
@section('title','修改友情链接')
@section('home','友情链接管理')
@section('weizhi','修改友情链接')
@section('con')

<div class="panel-body">
  <div class="form">
      <form class="form-validate form-horizontal" id="feedback_form" method="post" action="{{url('/admin/friend/update')}}" novalidate="novalidate">
          <div class="form-group ">
              <input type="hidden" name="fid" value="{{$friend -> id}}">
              <label for="cname" class="control-label col-lg-2">链接名<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <input class="form-control" id="cname" name="name" minlength="5" type="text" value="{{$friend -> name}}" >
              </div>
          </div>
          <div class="form-group ">
              <label for="cemail" class="control-label col-lg-2">链接地址<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <input class="form-control " id="cemail" type="email" name="url" value="{{$friend -> url}}">
              </div>
          </div>
          
          {{csrf_field()}}
          <div class="form-group">
              <div class="col-lg-offset-2 col-lg-10">
                  <button class="btn btn-primary" type="submit">提交</button>
                  <button class="btn btn-default" type="button">取消</button>
              </div>
          </div>
      </form>
  </div>

</div>

@endsection